\documentclass[12pt]{book}

\usepackage{svnkw}
% Version control information:
\svnidlong
{$HeadURL: http://calcint.googlecode.com/svn/trunk/master.tex $}
{$LastChangedDate: 2009-05-04 07:00:58 +0000 (Mon, 04 May 2009) $}
{$LastChangedRevision: 165 $}
{$LastChangedBy: MCCeqE $}

\usepackage{ifpdf}
   \ifpdf   
      \usepackage[pdftex]{graphicx}
      %\usepackage{epstopdf}
      %\usepackage[novbox]{pdfsync}
      \DeclareGraphicsExtensions{.pdf}
   \else
      \usepackage[dvips]{graphicx} 
      \DeclareGraphicsExtensions{.eps}
   \fi
\usepackage[mathlines]{lineno}
\usepackage[utf8]{inputenc}     %para soportar acentos nativos
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{float}              %para manejar figura aqui [H]
%\usepackage{askinclude}         %para preguntar que capitulo complilar
\usepackage{xcolor}		%para dar a color
\usepackage{amsthm}		%para personalizar los teoremas, lemas, etc.

\usepackage{fancyhdr}
\pagestyle{fancy}
%\fancyhead[LE,RO]{\slshape \rightmark}
%\fancyhead[LO,RE]{\slshape \leftmark}
%\fancyfoot[C]{\thepage}

\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{} %delete the current section for header and footer
\fancyhead[LE,RO]{\bfseries\thepage} 
\fancyhead[LO]{\bfseries\rightmark} 
\fancyhead[RE]{\bfseries\leftmark}
\fancyfoot[LE,RO]{\footnotesize Revisi\'on: {\sffamily\svnkw{Revision}}}
\fancyfoot[LO,RE]{\footnotesize Archivo: {\sffamily\svnkw{HeadURL}}\\ 
				Ultima modificaci\'on: \sffamily{\svnkw{LastChangedDate}}}
\renewcommand{\headrulewidth}{0.5pt}
% make space for the rule 
\fancypagestyle{plain}{%
\fancyhead{} %get rid of the headers on plain pages 
\renewcommand{\headrulewidth}{0pt} % and the line
}
\setlength{\headheight}{28pt}
\setcounter{MaxMatrixCols}{10}



% definicion de integral superior
\newcommand{\uint}{\overline{\int}}
% definicion de integral inferior
\newcommand{\lint}{\underline{\int}}

% Para ver las mejor definimos las referencias temporalmente en color
\let\Oldref\ref
\renewcommand{\ref}[1]{\textcolor{blue}{\Oldref{#1}}}

% Para poder distinguir lo que esta en italica y que esta emph
\let\OldItalica\textit
\renewcommand{\textit}[1]{\textcolor{red}{\OldItalica{#1}}}

%Para no tener que siempre escribir el color de colorbox
\newcommand{\resaltar}[1]{\colorbox{yellow}{#1}}


%para que numeracion de lines funciona bien con amsmath
\newcommand*\patchAmsMathEnvironmentForLineno[1]{%
  \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname
  \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname
  \renewenvironment{#1}%
     {\linenomath\csname old#1\endcsname}%
     {\csname oldend#1\endcsname\endlinenomath}}% 
\newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%
  \patchAmsMathEnvironmentForLineno{#1}%
  \patchAmsMathEnvironmentForLineno{#1*}}%
\AtBeginDocument{%
\patchBothAmsMathEnvironmentsForLineno{equation}%
\patchBothAmsMathEnvironmentsForLineno{align}%
\patchBothAmsMathEnvironmentsForLineno{flalign}%
\patchBothAmsMathEnvironmentsForLineno{alignat}%
\patchBothAmsMathEnvironmentsForLineno{gather}%
\patchBothAmsMathEnvironmentsForLineno{multline}%
}


%%% en lugar babel, cambios a espanol
\renewcommand\chaptername{Cap\'{i}tulo}
\renewcommand\contentsname{Contenido}
\renewcommand\partname{Parte}
\renewcommand\figurename{\textcolor{blue}{Figura}}


\newtheorem{theorem}{Teorema}[section]
\newtheorem{acknowledgement}[theorem]{Acknowledgement}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{case}[theorem]{Case}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Corolario}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}[theorem]{Definici\'on}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lema}
\newtheorem*{lemma*}{Lema}
\newtheorem{notation}[theorem]{Notation}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{summary}[theorem]{Summary}
\newtheorem{result}[theorem]{Resultado}
%\newenvironment{proof}[1][Proof]{\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
%\includeonly{cap-00}

\begin{document}
\newpage
\pagewiselinenumbers
%\runningpagewiselinenumbers
\frontmatter
\include{intro}
\tableofcontents
\mainmatter
\include{cap-00}
\include{cap-01}
\include{cap-02}
\include{cap-03}
\include{cap-04}
\include{cap-05}
\include{cap-06}
\include{cap-07}
\include{cap-08}
\include{cap-09}
\include{biblio}

\end{document}
